package com.xxiongb.business.repository.entity;

public class SimpleRole {
	private int roleIndex = -1;
	private String name;
	
	public int getRoleIndex() {
		return roleIndex;
	}
	public void setRoleIndex(int roleIndex) {
		this.roleIndex = roleIndex;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + roleIndex;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof SimpleRole))
			return false;
		SimpleRole other = (SimpleRole) obj;
		if (roleIndex != other.roleIndex)
			return false;
		return true;
	}
	
	
}
